﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using TyMES.Model.BaseInformation;
using TyMES.Model;

namespace TyMES.ViewModel.BaseInformation.MachineVMs
{
    public partial class MachineTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._Machine._MachineCode")]
        public ExcelPropety MachineCode_Excel = ExcelPropety.CreateProperty<Machine>(x => x.MachineCode);
        [Display(Name = "_Model._Machine._MachineName")]
        public ExcelPropety MachineName_Excel = ExcelPropety.CreateProperty<Machine>(x => x.MachineName);
        [Display(Name = "_Model._Machine._Asset")]
        public ExcelPropety Asset_Excel = ExcelPropety.CreateProperty<Machine>(x => x.Asset);
        [Display(Name = "_Model._Machine._LineCode")]
        public ExcelPropety LineCode_Excel = ExcelPropety.CreateProperty<Machine>(x => x.LineCode);
        [Display(Name = "_Model._Machine._RatedPower")]
        public ExcelPropety RatedPower_Excel = ExcelPropety.CreateProperty<Machine>(x => x.RatedPower);
        [Display(Name = "_Model._Machine._AtmPressure")]
        public ExcelPropety AtmPressure_Excel = ExcelPropety.CreateProperty<Machine>(x => x.AtmPressure);
        [Display(Name = "_Model._Machine._Voltage")]
        public ExcelPropety Voltage_Excel = ExcelPropety.CreateProperty<Machine>(x => x.Voltage);
        [Display(Name = "_Model._Machine._Current")]
        public ExcelPropety Current_Excel = ExcelPropety.CreateProperty<Machine>(x => x.Current);
        [Display(Name = "_Model._Machine._PersonCode")]
        public ExcelPropety PersonCode_Excel = ExcelPropety.CreateProperty<Machine>(x => x.PersonCode);
        [Display(Name = "_Model._Machine._MachineStatus")]
        public ExcelPropety MachineStatus_Excel = ExcelPropety.CreateProperty<Machine>(x => x.MachineStatus);
        [Display(Name = "_Model._Machine._StationCode")]
        public ExcelPropety StationCode_Excel = ExcelPropety.CreateProperty<Machine>(x => x.StationCode);
        [Display(Name = "_Model._Machine._CreateTime")]
        public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<Machine>(x => x.CreateTime, true);
        [Display(Name = "_Model._Machine._UpdateTime")]
        public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<Machine>(x => x.UpdateTime, true);
        [Display(Name = "_Model._Machine._CreateBy")]
        public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<Machine>(x => x.CreateBy);
        [Display(Name = "_Model._Machine._UpdateBy")]
        public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<Machine>(x => x.UpdateBy);

	    protected override void InitVM()
        {
            

        }

    }

    public class MachineImportVM : BaseImportVM<MachineTemplateVM, Machine>
    {
            //import

    }

}